<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>[%$ESPCMS_SOFT_TITLE%]</title>
		<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_public.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_all.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_style_font_icon.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_framework.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/espcms_select.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/upload_file.css" rel="stylesheet" type="text/css" />
		<link href="[%$ESPCMS_ADMIN_TEMPLATES_URL%]css/file.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/jquery-ui.min.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/lngpack_cn.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/bootstrap.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_function.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_formvalidation.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_form.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_dialog.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_select_checkbox.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_page.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_filetool.js"></script>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/webuploader/webuploader.js"></script>
		<script type="text/javascript">
			var uploadSWF = '[%ESPCMS_ADMIN_URL%]js/webuploader/Uploader.swf';
			var upfileType = '[%$upfileType%]';
			var selectnum = '[%$selectnum%]';
			var upfile_ext = '[%$upfile_ext%]';
			var upload_max_filesize = '[%$net_upload_max_filesize%]';
			var upload_max_filesize_byte = '[%$upload_max_filesize_byte%]';
			var chunksize = '[%$chunksize%]';

			$(document).ready(function () {

				$('.espcms_close_dialog').click(function () {
					parent.closedialogbox();
				});

				$('input[type=checkbox],input[type=radio]').espcms_checkbox();
			});

		</script>
	</head>
	<body class="dialog_body">
		<div class="panel-body">
			<form class="form-horizontal admin-form" enctype="multipart/form-data" id="saveFile" action="[%$upfileave%]">
				<input type="hidden" name="token_key" id="token_key" value="[%$token.token_key%]"/>
				<input type="hidden" name="token_name" id="token_name" value="[%$token.token_name%]"/>
				<input type="hidden" name="upFileType" id="upFileType" value="[%$upfileType%]"/>
				<div class="form-group">
					<label class="col-sm-2 control-label">[%pack:filemanage_pack-espcms_filenamage_file_dialog_title%]</label>
					<div class="col-sm-9" id="espcms_upload">
						<div id="picker" class="btn btn-green"><span class="espcms_icon_fa espcms_icon_fa-folder-open" aria-hidden="true" ></span>[%pack:filemanage_pack-espcms_filenamage_botton_select_file%]</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">[%pack:filemanage_pack-espcms_filenamage_select_filedir_title%]</label>
					<div class="col-sm-9">
						<select class="selectpicker form-control" name="filedir_id" id="filedir_id" data-size="5" title="[%pack:filemanage_pack-espcms_filenamage_select_filedir%]">
							[%forlist from=$fileDir key=i%]
							<option value="[%$fileDir[i].filedir_id%]" class="[%$fileDir[i].classname%]" data-icon="[%$fileDir[i].icon%]">[%$fileDir[i].filedir_name%]</option>
							[%/forlist%]
						</select>
					</div>
				</div>
				[%if $upfileType=='image'%]
				<div class="form-group">
					<label class="col-sm-2 control-label">[%pack:filemanage_pack-espcms_filenamage_select_isZoom_title%]</label>
					<div class="col-sm-9 pt5">
						<input type="radio" name="isZoom" value="1"[%if $UPFILE_PIC_ISZOOM==1%] checked[%/if%]/><span class="pr10">[%pack:filemanage_pack-espcms_filenamage_select_isZoom_1%]</span>
						<input type="radio" name="isZoom" value="0"[%if $UPFILE_PIC_ISZOOM==0%] checked[%/if%]/><span class="pr10">[%pack:filemanage_pack-espcms_filenamage_select_isZoom_0%]</span>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">[%pack:filemanage_pack-espcms_filenamage_select_isWater_title%]</label>
					<div class="col-sm-9 pt5">
						<input type="radio" name="isWater" value="1"[%if $UPFILE_ISWATERMARK==1%] checked[%/if%]/><span class="pr10">[%pack:filemanage_pack-espcms_filenamage_select_isWater_1%]</span>
						<input type="radio" name="isWater" value="0"[%if $UPFILE_ISWATERMARK==0%] checked[%/if%]/><span class="pr10">[%pack:filemanage_pack-espcms_filenamage_select_isWater_0%]</span>
					</div>
				</div>
				[%/if%]
				<div class="form-group">
					<label class="col-sm-2 control-label">[%pack:filemanage_pack-espcms_filenamage_content%]</label>
					<div class="col-sm-9 pt5">
						[%$upload_content%]
					</div>
				</div>
			</form>
		</div>

		<div class="dialogbotton">
			<div class="dialog_buttonset">
				<button type="button" id="file_upfile_botton" class="btn btn-danger espcms_submit_dialog" style="display: none;">[%pack:botton_pack-espcms_botton_upfile_ok%]</button>
				<button type="button" class="btn btn-lightgray espcms_close_dialog">[%pack:botton_pack-espcms_botton_close_window%]</button>
			</div>
		</div>
		<script type="text/javascript" src="[%ESPCMS_ADMIN_URL%]js/espcms_upload.js"></script>
	</body>
</html>
